package com.cargohu.aishouyu.member.service;

import com.cargohu.aishouyu.framework.page.Paging;
import com.cargohu.aishouyu.framework.service.BaseService;
import com.cargohu.aishouyu.member.dto.ChatHistoryAddDTO;
import com.cargohu.aishouyu.member.dto.ChatHistoryUpdateDTO;
import com.cargohu.aishouyu.member.entity.ChatHistory;
import com.cargohu.aishouyu.member.req.ChatHistoryRequest;
import com.cargohu.aishouyu.member.resp.ChatHistoryDetailVo;
import com.cargohu.aishouyu.member.resp.ChatHistoryResponse;

/**
 * 聊天记录 服务接口
 *
 * @author aaron.wang
 * @since 2023-11-27
 */
public interface ChatHistoryService extends BaseService<ChatHistory> {

    /**
     * 添加聊天记录
     *
     * @param chatHistoryAddDTO
     * @return
     * @throws Exception
     */
    boolean addChatHistory(ChatHistoryAddDTO chatHistoryAddDTO) throws Exception;

    /**
     * 修改聊天记录
     *
     * @param chatHistoryUpdateDTO
     * @return
     * @throws Exception
     */
    boolean updateChatHistory(ChatHistoryUpdateDTO chatHistoryUpdateDTO) throws Exception;

    /**
     * 删除聊天记录
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteChatHistory(Long id) throws Exception;

    /**
     * 聊天记录详情
     *
     * @param id
     * @return
     * @throws Exception
     */
    ChatHistoryDetailVo getChatHistoryById(Long id) throws Exception;

    /**
     * 聊天记录分页列表
     *
     * @param chatHistoryRequest
     * @return
     * @throws Exception
     */
    Paging<ChatHistoryResponse> getChatHistoryList(ChatHistoryRequest chatHistoryRequest) throws Exception;

}
